package com.luych.toolbox.common.event.base.service;

import com.luych.toolbox.common.feign.param.gateway.center.WebSocketLetter;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

public class WebSocketLetterRemoteApplicationEvent extends RemoteApplicationEvent {

    private final String userId;
    private final WebSocketLetter letter;

    public WebSocketLetterRemoteApplicationEvent(String originService, String destinationService, String userId, WebSocketLetter letter) {
        super(new Object(), originService, destinationService);
        this.userId = userId;
        this.letter = letter;
    }

    public String getUserId() {
        return userId;
    }

    public WebSocketLetter getLetter() {
        return letter;
    }
}
